package com.dq.service.org;

import com.dq.exception.customException.AdminException;
import com.dq.controller.in.ServiceProjectCategoryQuery;
import com.dq.domain.service.ServiceProjectCategory;

import java.util.List;

/**
 * @author cf
 *
 * 岗位逻辑
 *
 */
public interface ServiceProjectCategoryService {
    /**
     * 添加
     * @param serviceProjectCategory
     * @return
     * @throws AdminException
     */
    public ServiceProjectCategory save(ServiceProjectCategory serviceProjectCategory)  throws AdminException;

    /**
     *修改
     * @param serviceProjectCategory
     * @return
     * @throws AdminException
     */
    public ServiceProjectCategory update(ServiceProjectCategory serviceProjectCategory) throws AdminException;

    /**
     * 获取所有岗位， 或根据门店获取岗位
     * @param serviceProjectCategoryQuery
     * @return
     * @throws AdminException
     */
    public List<ServiceProjectCategory.Vo> listByPage(ServiceProjectCategoryQuery serviceProjectCategoryQuery) throws AdminException;
}
